from ronglian_sms_sdk import SmsSDK
from util.myredis import r
accid = '8aaf07088185853e01818a79406101a1'
accToken = '5eca0e122606470587ad66fb7eb67d27'
appId = '8aaf07088185853e01818a79414101a8'
def sms_code(mobile,code):
    sdk = SmsSDK(accid,accToken,appId)
    tid = '1'
    datas = (code,5)
    resp = sdk.sendMessage(tid,mobile,datas)
    return resp

